import logging
def log_set():
    logging.basicConfig(level=logging.DEBUG,filename="log.txt",filemode="w",format="%(message)s--%(asctime)s")